<{include file="public/header.html"}>
		<div class="xinsu-right">
			<div class="xinsu-right-content">
				<div class="xinsu-data-content">
					<div class="xinsu-title">
						<span class="layui-breadcrumb">
							<a href="/">当前位置</a>
							<a href="/<{$common_info.module}>/LogAtm/"><cite>提款记录表管理</cite></a>
						</span>
					</div>
					
					<form class="layui-form xinsu-form" action="/<{$common_info.module}>/LogAtm/" method="get">
						<div class="layui-form-item">
							<div class="layui-inline">
								<label class="layui-form-label xinsu-form-label">状态：</label>
								<div class="layui-input-inline xinsu-input-inline">
									<select name="ispay">
										<option value="9" <{if $ispay=="9"}>selected="selected"<{/if}> >全部</option>
										<option value="0" <{if $ispay=="0"}>selected="selected"<{/if}>>待审核</option>
										<option value="1" <{if $ispay=="1"}>selected="selected"<{/if}>>已支付</option>
										<option value="2" <{if $ispay=="2"}>selected="selected"<{/if}>>已驳回</option>
									</select>
								</div>
							</div>
							<div class="layui-inline">
								<label class="layui-form-label xinsu-form-label">用户:</label>
								<div class="layui-input-inline xinsu-input-inline">
									<input type="text" name="username" class="layui-input" value="<{if $username !='0'}><{urldecode($username)}><{/if}>" />
								</div>
							</div>
							<div class="layui-inline">
								<label class="layui-form-label xinsu-form-label">申请时间:</label>
								<div class="layui-input-inline xinsu-input-inline">
									<input type="text" name="begin_time" id="begin_time" lay-verify="date"  autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this})" value="<{if 0 != $begin_time}><{$begin_time}><{/if}>">
								</div>
							</div>
							<div class="layui-inline">
								<label class="layui-form-label xinsu-form-label">~</label>
								<div class="layui-input-inline xinsu-input-inline">
									<input type="text" name="end_time" id="end_time" lay-verify="date"  autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this})" value="<{if 0 != $end_time}><{$end_time}><{/if}>">
								</div>
							</div>

							<button class="layui-btn xinsu-btn">查询</button>
							<span>记录总数：共 <{$total}> 条</span>
						</div>
					</form>
					<div class="layui-form xinsu-form">
						<table class="layui-table">
							<thead>
								<tr>
									<th>ID</th>
									<th>用户</th>
									<th>申请时间</th>
									<th>处理时间</th>
									<th>金额</th>
									<th>银行</th>
									<th>开户行</th>
									<th>账号/姓名</th>
									<th>状态</th>
									<th>操作</th>
								</tr> 
							</thead>
							<tbody>
								<{if empty($list) == false}>
								<{foreach $list as $val}>
								<tr>
									<td><{$val.id}></td>
									<td><a class="xinsu-fontcolor-blue xinsu-user" href="javascript:;" data="<{$val.uid}>"><{$val.username}></a></td>
									<td><{$val["addtime"]}></td>
									<td><{if $val.ispay > 0}><{$val["uptime"]}><{/if}></td>
									<td class="xinsu-fontcolor-green"><{$val.money}></td>
									<td><{$val.bank_name}></td>
									<td><{$val.bank_address}></td>
									<td><{$val.bank_no}>/<{$val.bank_account}></td>
									<{if $val.ispay==0}>
									<td class="xinsu-fontcolor-blue">待审核</td>
									<{elseif $val.ispay==1}>
									<td class="xinsu-fontcolor-green">已支付</td>
									<{else}>
									<td class="xinsu-fontcolor-red">已驳回</td>
									<{/if}>
									<td>
										<{if $val.ispay==0}>
										<a class="xinsu-atm-pay xinsu-fontcolor-green"  href="javascript:;" data="<{$val.id}>" data-status="1">付款</a>
										<a class="xinsu-atm-pay xinsu-fontcolor-red"  href="javascript:;" data="<{$val.id}>" data-status="2">驳回</a>
										<{else}>
										--
										<{/if}>
									</td>
									
								</tr>
								<{/foreach}>
								<{else}>
								<tr>
									<td colspan="10">暂无数据</td>
								</tr>
								<{/if}>
							</tbody>
						</table>
					</div>
					<div class="xinsu-page">
						<div class="xinsu-show">
							<{$page}>
						</div>
						<div class="xinsu-clear"></div>
					</div>
				</div>
			</div>
		</div>
		<script>
			$(".xinsu-atm-pay").click(function(){
				var id = $(this).attr("data");
				var ispay = $(this).attr("data-status");
				layer.confirm('您确定要执行？', {icon: 3}, function () {
					layer.closeAll();
					http_request_post("/<{$common_info.controller}>/change/" + id + "/" + ispay, {token:token}, function(result){
						layer.msg(result.msg, {icon:1, time:800}, function (){
							location.reload();
						});
					});
				})
			});
		</script>
<{include file="public/footer.html"}>